// C05:5.13:while.cpp -- introducing the while loop
#include <iostream>
const int ArSize = 20;

int main(void)
{
    using namespace std;
    char name[ArSize];
    cout <<"You first name, please: ";
    cin >> name;

    cout << "Here is your name, verticalized and ASCIIized:\n";
    int i = 0;
    while (name[i] != '\0')
    {
        cout << name[i] << ": " << int(name[i]) << endl;
        // don't forget this step
        i++;
    }
}